package com.kf5.sdk

import android.content.Intent
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import com.kf5.sdk.helpcenter.ui.HelpCenterActivity
import com.kf5.sdk.im.ui.KF5ChatActivity
import com.kf5.sdk.ticket.ui.FeedBackActivity
import com.kf5.sdk.ticket.ui.LookFeedBackActivity
import kotlinx.android.synthetic.main.kf5_home_page_fragement.*

class KF5HomePage : Fragment() {
    override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? {
        return inflater.inflate(R.layout.kf5_home_page_fragement, container, false)
    }

    override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
        tvHelpCenter.setOnClickListener {
            startActivity(Intent(context, HelpCenterActivity::class.java))
        }
        tvFeedBack.setOnClickListener {
            startActivity(Intent(context, FeedBackActivity::class.java))
        }
        tvLookFeedBack.setOnClickListener {
            startActivity(Intent(context, LookFeedBackActivity::class.java))
        }
        tvIM.setOnClickListener {
            startActivity(Intent(context, KF5ChatActivity::class.java))
        }
    }
}